#encoding: utf-8
class DesktopController < ApplicationController
  def index
    begin
    # cf http://oauth.rubyforge.org/rdoc/classes/OAuth/AccessToken.html
    # @consumer_tokens=TestToken.where(:user_id=> current_user.id)
    # @token = @consumer_tokens.first.client #unless @consumer_tokens.first.nil?
      # logger.info "=========>  private data: "+ current_user.test.client.get("/oauth_interface/getUserAddressById").body #unless @token.nil?
      infos = current_user.test.client.get("/oauth_interface/getUserAddressById").body.force_encoding('UTF-8')
      @addressbook_info = infos.split(":")
    rescue
    end
  end
  
  def show
    
  end
end
